package org.langqiao.experiment.experiment1;
import java.util.*;

public class Sum10_for{
	
  public static void main(String args[]){
      Scanner sc=new Scanner(System.in);    
      int i=1,s=0;
      System.out.println("input a num");
      int n=sc.nextInt();
      System.out.print("Sum("+n+")=");
      for(i=1;i<n;i++){ 
          s=s+i;
          System.out.print(i+"+");
      }
      System.out.println(i+"="+(s+i));
  }
}